package com.ruoyi.exam.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 试卷对象 exam_paper
 * 
 * @author ruoyi
 * @date 2024-07-10
 */
public class ExamPaper extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 考试表的id */
    @Excel(name = "考试表的id")
    private Long examId;

    /** 参与考试人的id */
    @Excel(name = "参与考试人的id")
    private Long userId;

    /** $column.columnComment */
//    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
//    private String examName;

    /** 用户姓名 */
    @Excel(name = "用户姓名")
    private String userName;

    /** 提交试卷的时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "提交试卷的时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date submitPaperTime;

    /** 用户得分 */
    @Excel(name = "用户得分")
    private BigDecimal userScore;

    /** 是否逻辑删除:0:否,1:是 */
    private Integer isDeleted;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setExamId(Long examId) 
    {
        this.examId = examId;
    }

    public Long getExamId() 
    {
        return examId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setSubmitPaperTime(Date submitPaperTime) 
    {
        this.submitPaperTime = submitPaperTime;
    }

    public Date getSubmitPaperTime() 
    {
        return submitPaperTime;
    }
    public void setUserScore(BigDecimal userScore) 
    {
        this.userScore = userScore;
    }

    public BigDecimal getUserScore() 
    {
        return userScore;
    }
    public void setIsDeleted(Integer isDeleted) 
    {
        this.isDeleted = isDeleted;
    }

    public Integer getIsDeleted() 
    {
        return isDeleted;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("examId", getExamId())
            .append("userId", getUserId())
            .append("userName", getUserName())
            .append("submitPaperTime", getSubmitPaperTime())
            .append("userScore", getUserScore())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("isDeleted", getIsDeleted())
            .toString();
    }
}
